Skip to content

Instantly share code, notes, and snippets.

@Martmists-GH
Martmists-GH / portal_sorted.py
Last active February 9, 2026 13:05
Portal voice lines sorted by character
announcer = """
Announcer: Explosion imminent. Evacuate the facility immediately.
Announcer: Warning. Reactor core is at critical temperature.
Announcer: Warning: Core overheating. Nuclear meltdown imminent.
Announcer: Warning: Core corruption at 50 percent.
Announcer: Warning: Core corruption at 75 percent.
Announcer: Warning: Core corruption at 100 percent.
Announcer: Neurotoxin level at capacity in five minutes.
Announcer: Vent system compromised: Neurotoxin offline.
Announcer: Reactor explosion in four minutes.
@leonjza
leonjza / dump.sh
Last active February 9, 2026 13:03
Dump iOS executable content headers using radare2
#!/usr/bin/env bash
#
# Dump headers for binaries in an extracted iOS applications'
# Payload folder using radare2.
dumpdir="headers/"
mkdir -p $dumpdir
find . -perm +111 -type f | grep -iv "libswift" | while read -r bin; do
echo "< Processing -> $bin"
@skyzyx
skyzyx / homebrew-gnubin.md
Last active February 9, 2026 12:59
Using GNU command line tools in macOS instead of FreeBSD tools

macOS is a Unix, and not built on Linux.

I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.

Homebrew

Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.

All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@emschwartz
emschwartz / README.md
Last active February 9, 2026 12:56
The Most Popular Blogs of Hacker News in 2025

This is an OPML version of the HN Popularity Contest results for 2025, for importing into RSS feed readers.

Plug: if you want to find content related to your interests from thousands of obscure blogs and noisy sources like HN Newest, check out Scour. It's a free, personalized content feed I work on where you define your interests in your own words and it ranks content based on how closely related it is to those topics.

@xTCry
xTCry / README.md
Last active February 9, 2026 12:56
[Nginx] Config for block site bots / Конфиг для блокировки вредного трафика от хостинг провайдеров

[Nginx] Конфиг для блокировки вредного трафика от хостинг-провайдеров

Nginx config for block site bad traffic (bots)

Что произошло?

Было замечено, что на сайт идет множество запросов с симуляцией поведения Android девайса с прокруткой содержимого страницы и ее повторного открытия уже с другой информацией об устройстве.

Запросы обычно происходили на одни и те же страницы (в основном только на две-три). Адрес запроса был сформирован так, что сервер переадресовывал на корректный адрес. Например, с /info/info/.

У более чем 95% подозрительных запросов были использованы IPv6 адреса. Что явно затрудняло обнаружение продозрительного трафика, т.к. нагрузки почти не было и сайт работал в штатном режиме, но была замечена накрутка посещаемости.

DELETE {
?s ?p ?o .
}
WHERE {
?s ?p ?o .
FILTER (
STRSTARTS(STR(?s),
"http://data.local/rdf/data/TABLENAME/TABLEROWNUMBER")
||
STRSTARTS(STR(?o),
@ryanwi
ryanwi / software-terms.dic
Last active February 9, 2026 12:53
Dictionary of software technology terms
.NET
.NET Core
Agile
AI/alias[AI|Artificial Intelligence]
Airflow
Android
Ansible
Angular 2/alias[Angular2|Angular 2]
AngularJS/js[Angular]
API